package cloud.shyidong.tenant.request;

import cloud.shyidong.core.request.SimpleInsertRequest;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * SAAS用户添加请求
 * </p>
 *
 * @author syd
 * @since 2023-08-23 17:09:35
 */
@Data
public class TenantUserInsertRequest extends SimpleInsertRequest {
    
    /**
     * 租户ID
     */
    @NotNull(message = "缺少租户ID")
    private Long tenantId;
    
    /**
     * 登录名称
     */
    @NotBlank(message = "缺少登录名称")
    private String username;
    
    /**
     * 登录密码
     */
    @NotBlank(message = "缺少登录密码")
    private String password;
    
    /**
     * 确认密码
     */
    @NotBlank(message = "缺少确认密码")
    private String confirmPassword;
    
    /**
     * 用户名称
     */
    @NotBlank(message = "缺少用户名称")
    private String name;
    
    /**
     * 电话号码
     */
    @NotBlank(message = "缺少电话号码")
    private String phone;
    
    /**
     * 邮箱
     */
    @NotBlank(message = "缺少邮箱")
    private String email;
    
    /**
     *
     */
    @NotNull(message = "缺少排序")
    private Integer sortIndex;
    
    /**
     *
     */
    private String remark;
    
    
}
